package web.socket2;

import java.nio.ByteBuffer;

public class TestCharUtils {
	public static void main(String[] args) {
		
		ByteBuffer buffer=ByteBuffer.wrap("曾少文".getBytes());
		
		String decode = CharSetUtil.decode(buffer, "utf-8");
		System.out.println(decode);
		
		ByteBuffer encode = CharSetUtil.encode("曾少文", "utf-8");
		ByteBuffer send = ByteBuffer.allocate(1024);
		send.put(encode);
		System.out.println(12);
	}

}
